﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TodoApp.ResultModel;
using TodoApp.TMS_Basics.TMS_line;
using Volo.Abp.Application.Services;

namespace TodoApp.TMS_line
{
    public class TMS_LineAppService : ApplicationService
    {
        private readonly ITMS_lines _Lines;
        public TMS_LineAppService(ITMS_lines Lines)
        {
            _Lines = Lines;
        }
        public async Task<int> LinsAdds(TMS_linesDto info)
        {
            return await _Lines.LinsAdds(info);
        }

        public async Task<PageResponse<TMS_linesDto>> GetCar(string LinName, string PeopName, string PeopPhone, string PeopDds, int pageindex = 1, int pagesize = 5)
        {
            return await _Lines.Getline(LinName, PeopName, PeopPhone, PeopDds, pageindex, pagesize);
        }

        public async Task<int> Deletline(string Id)
        {
               return await _Lines.Deletline(Id);
        }
    }
}
